package com.huatai.exchange.dal.dao;

import com.faneui.common.exception.BusinessException;
import com.huatai.exchange.dal.model.ExcFileLoadRecord;
import org.apache.ibatis.annotations.Param;

import java.sql.BatchUpdateException;
import java.util.List;

public interface ExcFileLoadRecordDAO {

    ExcFileLoadRecord queryById(String id) throws Exception;


    List<ExcFileLoadRecord> queryByModel(ExcFileLoadRecord excFileLoadRecord) throws Exception;

    //
    void insert(ExcFileLoadRecord excFileLoadRecord) throws Exception;

    //
    Long updateById(ExcFileLoadRecord excFileLoadRecord) throws Exception;

    /**
     *  更新查询使用次数
     * @param id
     * @return
     * @throws BusinessException
     */
    Long updateRequestTimes(String id)throws Exception ;

    Long updateStatus(@Param("id") String id,@Param("oldStatus")  String oldStatus

            ,@Param("newStatus")  String newStatus,@Param("memo")  String memo) throws Exception ;
}
